$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .banner {
    width: 100%;
    position: relative;

    .bg {
      img {
        width: 100%;
        display: block;
        object-fit: cover;
      }
    }

    .t {
      position: absolute;
      left: 50%;
      top: 45%;
      transform: translate(-50%, -50%);
      color: #FFF;
      font-size: $fontSize_54;
      font-weight: 700;
    }

    .add {
      position: absolute;
      left: 50%;
      bottom: 30%;
      transform: translateX(-50%);
      z-index: 10;
      transition: all 600ms;

      img {
        width: 60/$f+vw;
      }

      &:hover {
        transform: translateX(-50%) rotate(180deg);
      }
    }
  }

  .section1 {
    width: 70vw;
    margin: 15px auto 6vw auto;

    .links {
      a {
        display: flex;
        align-items: center;

        p {
          color: #B2B2B2;
          font-size: $fontSize_16;
        }
      }
    }

    .box {
      display: flex;
      justify-content: space-between;
      margin: 3vw 0;
      align-items: center;

      .l {
        width: 48%;

        .tag {
          background: linear-gradient(280deg, #92D341 -27.68%, #4FAD24 104.15%);
          width: fit-content;
          color: white;
          font-size: $fontSize_16;
          padding: 0.3vw 1.2vw;
        }

        .name {
          color: #000;
          font-size: $fontSize_32;
          font-weight: 600;
          border-bottom: 1px solid #56B127;
          padding: 1vw 0;
        }

        .info {
          .item {
            margin-top: 2vw;

            .pt {
              color: #28B554;
              font-size: $fontSize_18;
              font-weight: 500;
              display: flex;
              align-items: center;

              &::after {
                content: '';
                display: block;
                width: 5px;
                height: 5px;
                border-radius: 50%;
                background: #28B554;
                margin-left: 5px;
              }
            }

            .des {
              color: #666;
              font-size: $fontSize_16;
              margin-top: 5px;
            }
          }
        }

        .btns {
          display: flex;
          margin-top: 2vw;

          a {
            background: linear-gradient(280deg, #92D341 -27.68%, #4FAD24 104.15%);
            width: fit-content;
            color: white;
            font-size: $fontSize_16;
            padding: 0.7vw 2.4vw;
            display: block;
            margin-right: 2vw;
          }
        }
      }

      .r {
        width: 48%;

        .swiper-container {
          width: 100%;

          .pic {
            padding: 20px 0;
            img {
              width: calc(90% - 2px);
              display: block;
              object-fit: cover;
              border: 1px solid rgba(188, 187, 187, 0.60);
              box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.13);
              margin: 0 auto;
            }
          }
        }

        .swiper-pagination {
          position: static;
          width: 100%;
          display: flex;
          justify-content: center;

          .swiper-pagination-bullet {
            margin: 0 5px;
            width: 12px;
            height: 12px;
            background: #E6E6E6;
            border-radius: 50%;
            opacity: 1;
            transition: all 600ms;
          }

          .swiper-pagination-bullet-active {
            background-color: #79C536;
          }
        }
      }
    }
  }

  .recommend {
    background: #F5F5F5;
    padding: 3vw 0;

    .t {
      color: #000;
      font-size: 42/$f+vw;
      text-align: center;
      font-weight: 600;
    }

    .pros {
      width: 70vw;
      margin: 2vw auto;

      .swiper-container {
        width: 100%;

        a {
          border-radius: 3px;
          border: 1px solid #E6E6E6;
          background: #FFF;
          box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.09);
          padding: 1vw;
          display: block;

          .pic {
            img {
              width: 100%;
              display: block;
              object-fit: cover;
              transition: all 600ms;
            }
          }

          .name {
            font-size: $fontSize_16;
            color: rgba(51, 51, 51, 1);
            font-weight: 500;
            margin: 10px 0;
            transition: all 600ms;
          }

          .tag {
            color: #999;
            font-size: $fontSize_14;
          }

          &:hover {
            .pic {
              img {
                transform: scale(1.05);
              }
            }

            .name {
              color: #79C536;
            }
          }
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;

    .banner {
      .bg {
        img {
          height: 300px;
        }
      }

      .t {
        font-size: 20px;
      }

      .add {
        bottom: 25%;

        img {
          width: 20px;
        }
      }
    }

    .section1 {
      width: 90%;

      .links {
        a {
          p {
            font-size: 14px;
          }
        }
      }

      .box {
        flex-direction: column;

        .l {
          width: 100%;

          .tag {
            font-size: 14px;
            padding: 5px 15px;
          }

          .name {
            font-size: 18px;
            padding: 15px 0;
          }

          .info {
            .item {
              margin-top: 15px;

              .pt {
                font-size: 16px;
              }

              .des {
                font-size: 14px;
                margin-top: 8px;
              }
            }
          }

          .btns {
            margin-top: 10px;

            a {
              font-size: 14px;
              padding: 5px 15px;
              margin-right: 20px;
            }
          }
        }

        .r {
          width: 100%;
          margin-top: 20px;
        }
      }
    }

    .recommend {
      padding: 30px 0;

      .t {
        font-size: 20px;
      }

      .pros {
        width: 90%;
        margin: 20px auto;

        .swiper-container {
          a {
            padding: 15px;

            .name {
              font-size: 16px;
            }

            .tag {
              font-size: 14px;
            }
          }
        }
      }
    }
  }
}